/* 导入主页样式 */
@import url('index.css');

/* 课程学习页面特定样式 */
.showcase-grid,
.video-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.showcase-item,
.video-item,
.testimonial-item {
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-item:hover,
.video-item:hover,
.testimonial-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 168, 255, 0.2);
}

.showcase-item img,
.video-item img,
.testimonial-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.showcase-item h3,
.video-item h3,
.testimonial-item blockquote {
    padding: 1rem;
    font-size: 1.2rem;
    color: #ffffff;
}

.showcase-item p,
.video-item p,
.testimonial-item p {
    padding: 0 1rem 1rem;
}

.testimonial-item blockquote {
    font-style: italic;
    position: relative;
}

.testimonial-item blockquote::before {
    content: '"';
    font-size: 3rem;
    position: absolute;
    left: 0.5rem;
    top: -0.5rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.client-name {
    text-align: right;
    font-weight: bold;
    color: var(--primary-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .showcase-grid,
    .video-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    cursor: pointer;
}

.video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: url('path/to/play-button-icon.png') no-repeat center center;
    background-size: contain;
    pointer-events: none;
}

.video-item iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border: none;
    display: none; /* Initially hidden */
}

.video-item {
    position: relative;
    background-color: var(--card-background);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-item h3,
.video-item p {
    padding: 1rem;
    position: relative;
    z-index: 1;
}

/* 课程页面特定样式 */
.course-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0;
    text-align: center;
    color: #ffffff;
}

.course-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.course-hero p {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto;
}

.category-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

.category-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
}

.category-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 3rem 0;
}

.course-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.course-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.course-content {
    padding: 2rem;
}

.course-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.course-description {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.video-item {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.video-item iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 18px solid transparent;
    border-bottom: 18px solid transparent;
    border-left: 24px solid #ffffff;
    margin-left: 5px;
}

.video-content {
    padding: 2rem;
}

.video-title {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.video-description {
    font-size: 1.1rem;
    color: var(--text-color);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.testimonial-item {
    background-color: var(--card-background);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
}

blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-size: 1.2rem;
}

.student-name {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

@media (max-width: 768px) {
    .course-hero h1 {
        font-size: 3rem;
    }

    .course-hero p {
        font-size: 1.2rem;
    }

    .category-grid {
        flex-direction: column;
        align-items: center;
    }

    .category-item {
        width: 100%;
        text-align: center;
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* 保留原有的其他样式 */